package com.hl.mapper;

import com.hl.domain.VerificationCode;
import org.apache.ibatis.annotations.Param;

public interface VerificationCodeMapper {
    // 插入验证码
    int insertCode(VerificationCode verificationCode);

    // 根据手机号查找最新的验证码
    VerificationCode findLatestCodeByPhoneNumber(@Param("phoneNumber") String phoneNumber);
}